<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/3/9
  Time: 17:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../common/web_top.jsp" %>
<div class="bgSortScroll">
    <div class="public-bgContent">
        <div class="public-bgDate">
                            <span><input type="text" autocomplete="off" id="start_time" class="datepicker"
                                         ng-focus="remHight()"
                                         ng-class="{'error':redErr.dateTime}" placeholder="开始时间"
                                         ng-model="param.beginTime"
                                         class="ng-pristine ng-untouched ng-valid ng-empty"><i
                                    class="iconfont icon-riqi"></i></span>
            <em>&nbsp;&nbsp;~&nbsp;&nbsp;</em>
            <span><input type="text" autocomplete="off" id="end_time" class="datepicker" ng-focus="remHight()"
                         ng-class="{'error':redErr.dateTime}" placeholder="结束时间"
                         ng-model="param.endTime" class="ng-pristine ng-untouched ng-valid ng-empty"><i
                    class="iconfont icon-riqi"></i></span>
            <div class="se-re">
                <select id="product_name_key"
                        class="ng-valid ng-not-empty ng-dirty ng-valid-parse ng-touched" autocomplete="off">
                    <option value="" selected="selected">选择字段&nbsp;&nbsp;</option>
                    <option value="1">产品名称</option>
                    <option value="2">公司名称</option>
                </select>
                <span class="se-po"></span>
            </div>
            <span>
                            <input type="text" autocomplete="off" id="product_name" placeholder="请输入关键字"
                                   ng-focus="remHight()"
                                   ng-model="param.keyword"
                                   class="ng-pristine ng-valid ng-empty ng-touched">
                        </span>
            <button type="button" id="sousuo">
                <i class="iconfont icon-sousuo"></i>
            </button>
        </div>
        <div class="public-bghint">
                <span ng-click="showMenu()" style="cursor: pointer;">提示操作&nbsp;&nbsp;<i
                        class="iconfont icon-icon-copy-copy"></i></span>
            <span class="calNum">筛选<span class="result "></span>条结果</span>
        </div>
        <ul class="public-ulList" ng-show="isMenu" ng-transclude="content">
            <menu-content class="">
                <li>显示拥有该栏目管理权限的数据；</li>
                <li>拥有权限的管理员可以对产品进行增加、修改、删除；如果没有该权限，则操作性不显示对应的操作按钮</li>
            </menu-content>
        </ul>
        <div style="height: 20px;"></div>
        <div class="table-scroll">
            <table class="table public-table PoInput">
                <thead>
                <tr>
                    <td>选择</td>
                    <td>创建时间</td>
                    <td>产品名称</td>
                    <%--<td>合同名称</td>--%>
                    <td>所属公司</td>
                    <td>状态</td>
                    <td>操作</td>
                </tr>
                </thead>
                <tbody id="product_list">

                </tbody>
            </table>
        </div>

        <script type="text/x-handlebars-template" id="product_list_tpl">
            {{#if this.[0]}}
            {{#each this}}
            <!-- ngRepeat: i in dataList.list -->
            <tr class="table-tr-hover ">
                <td ng-if="!operation.examine" class="">
                    <input type="checkbox" name="ch_id" value="{{id}}">
                </td>
                <td>
                    {{create_time}}
                </td>
                <!-- ngIf: !operation.examine -->
                <td ng-if="!operation.examine" class="">
                    {{product_name}}
                </td><!-- end ngIf: !operation.examine -->
                <%--<td>{{contract_name}}</td>--%>
                {{#if d_name2}}
                <td class="">{{d_name2}}&gt;&nbsp;{{d_name}}</td>
                {{else}}
                <td class="">{{d_name}}</td>
                {{/if}}
                {{#IF_EQ state 1}}
                <td class="">启用</td>
                {{/IF_EQ}}
                {{#IF_EQ state -1}}
                <td class="">停用</td>
                {{/IF_EQ}}
                <td>
                    <div class="se-re sel-blue">
                        <select class="tabHint operations" autocomplete="off" product_id="{{id}}"
                                workflow_id="{{workflow_id}}" product_name="{{product_name}}">
                            <option value="0" selected>选择操作</option>
                            <option value="1">编辑</option>
                            {{#IF_EQ state -1}}
                            <option value="4" data-state="1">启用</option>
                            {{/IF_EQ}}
                            {{#IF_EQ state 1}}
                            <option value="4" data-state="-1">停用</option>
                            {{/IF_EQ}}
                            <option value="6" data-state="-1">删除</option>
                            <option value="2">设置流程</option>
                            <option value="3">表单设计</option>
                            <option value="5" data-id="{{id}}">添加附件</option>

                        </select>
                        <span class="se-po-blue"></span>
                    </div>
                    <button id="{{id}}"
                            class="operations_record tabHint btnQuery524">
                        操作记录
                    </button>
                </td>
            </tr>
            {{/each}}
            {{else}}
            <tr class="">
                <td colspan="16">暂时找不到数据</td>
            </tr>
            {{/if}}
        </script>

        <div class="public-botPage">
            <!-- ngIf: operation.batch -->
            <div class="public-botPage-left " ng-if="operation.batch">
                <label id="ch_id_all">
                    &nbsp;&nbsp;&nbsp;<input type="checkbox" name="ch_id_all"
                                             ng-click="F.ch_id_all($event,'ch_id')">
                    &nbsp;全选
                </label>
                <div class="se-re">
                    <select id="bulk_operation" autocomplete="off"
                            class="tabHint PoListSele ng-pristine ng-untouched ng-valid ng-not-empty"
                            ng-model="selectType.default" ng-change="F.selectQuery('PoListSele','ch_id')">
                        <option value="" selected="selected">批量操作</option>
                        <option value="删除" path="loanBefore" params="delePo" param="type:2"
                                ng-if="HbHr.hr57 &amp;&amp; operation._type =='orderList'" class="">
                            删除所选
                        </option><!-- end ngIf: HbHr.hr57 && operation._type =='orderList' -->
                        <option value="启用">启用</option>
                        <option value="停用">停用</option>
                    </select>
                    <span class="se-po"></span>
                </div>
                <!-- ngIf: HbHr.hr58 && operation._type=='orderList' -->
                <button class="tabHint " id="product_new"
                        ng-click="F.toggleView('loanBefore','orderRntry',$event)" params="1"
                        ng-if="HbHr.hr58 &amp;&amp; operation._type=='orderList'">
                    新增产品
                </button><!-- end ngIf: HbHr.hr58 && operation._type=='orderList' -->
            </div><!-- end ngIf: operation.batch -->
            <div class="page-container product-page-container" style="float: right; padding: 15px 0;"></div>
        </div>
    </div>
</div>


<%--产品编辑弹框--%>
<div class="winBox" id="product_edit_pop">
    <div class="winBox1">
        <div class="winBox3">
            <div class="dealrecord">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">产品编辑</span>
                    <i class="iconfont icon-wrong headerIcon"></i>
                </div>
                <!-- 内容 -->
                <%--<div class="contentBox" style="padding-bottom: 50px;">
                    <div class="assBox">
                        <div class="assHeader">
                            <span></span>产品名称
                        </div>
                        <div class="se-re public-bgDate">
                            <input type="text" autocomplete="off" id="new_product" placeholder="请输入关键字" ng-focus="remHight()"
                                   ng-model="param.keyword" class="ng-pristine ng-valid ng-empty ng-touched">
                        </div>
                        <div class="assHeader">
                            <span></span>公司
                        </div>



                        &lt;%&ndash;<div class="assHeader">
                            <span></span>合同
                        </div>

                        <div id="contract_list" class="se-re public-bgDate"></div>
                        <script type="text/x-handlebars-template" id="contract_list_tpl">
                            <select id="new_contract" autocomplete="off">
                                <option value="">请选择</option>
                                {{#each .}}
                                <option value="{{id}}">{{contract_name}}</option>
                                {{/each }}
                            </select>
                        </script>&ndash;%&gt;


                    </div>
                </div>--%>
                <div class="resultBox" style="">
                    <div class="centerBox" style="">
                        <div class="resultPadd" style="">
                            <table class="resultTab" style="margin-top: 20px">
                                <tbody style="">
                                <tr>
                                    <td><span style="color: #D5332C;font-weight: bold;">*</span>产品名称</td>
                                    <td class="only-input">
                                        <input type="text" autocomplete="off" id="new_product" placeholder="请输入产品名字"
                                               ng-focus="remHight()"
                                               ng-model="param.keyword"
                                               class="ng-pristine ng-valid ng-empty ng-touched">
                                    </td>
                                </tr>
                                <tr>
                                    <td><span style="color: #D5332C;font-weight: bold;">*</span>公司</td>
                                    <td class="tdSelect"><%--公司列表--%>
                                        <div id="company_list" class="se-re public-bgDate se-re2"></div>
                                        <script type="text/x-handlebars-template" id="company_list_tpl">
                                            <select id="new_department" autocomplete="off">
                                                <option value="">请选择</option>
                                                {{#each .}}
                                                <option value="{{id}}" name="{{name}}">{{name}}</option>
                                                {{/each }}
                                            </select>
                                        </script>

                                        <%--子级公司列表--%>
                                        <div id="company_child_list" class="se-re public-bgDate se-re2"></div>
                                        <script type="text/x-handlebars-template" id="company_child_list_tpl">
                                            <select id="new_child_department" autocomplete="off">
                                                <option value="">请选择</option>
                                                {{#each .}}
                                                <option value="{{id}}" name="{{name}}">{{name}}</option>
                                                {{/each }}
                                            </select>
                                        </script>
                                    </td>
                                </tr>
                                <tr style="">
                                    <td><span style="color: #D5332C;font-weight: bold;">*</span>图标上传</td>
                                    <td class="unload" style="">
                                        <em id="imgTerm_0" style="margin-top: 14px" class="viewPic">上传图片</em>
                                        <div class="imgArr minImg" style="margin-top:10px">
                                            <span style="display: none" class="_pre " ng-if="item.isImg"
                                                  ng-click="_pre(key)"></span>
                                            <div class="cover" style="overflow-y: hidden;
    height: 70px;
    margin: 0 24px;">
                                                <div id="gallery7" attachid="图标"
                                                     style="position: relative; left: 0;">
                                                </div>
                                            </div>
                                            <span style="display: none" class="_next " ng-if="item.isImg"
                                                  ng-click="_next(key)"></span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>产品编码</td>
                                    <td class="only-input"><input type="text" autocomplete="off"
                                                                  id="productType" placeholder="产品编码"
                                                                  ng-focus="remHight()"
                                                                  ng-model="param.keyword"
                                                                  class="ng-pristine ng-valid ng-empty ng-touched"></td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="deleFooter">
                                <div class="deleBtn">
                                    <button style="background: #E55A5B;" id="product_edit" ng-click="queding()">确定提交
                                    </button>
                                    <button style="background:white;" ng-click="F.showWin('hide')">取消确定</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<%--操作记录弹框--%>

<%--<div class="winBox" id="record_pop">
    <div class="winBox1 " ng-include="box"><!-- 说明： 操作记录模板 -->
        <div class="winBox3 ">
            <div class="dealrecord">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">操作记录</span>
                    <i id="record_show" class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 内容 -->
                <div id="record_list" class="contentBox" style="padding-bottom: 50px;"></div>
                <!-- 中间列表 -->
                <script type="text/x-handlebars-template" id="record_list_tpl">
                    {{#IF_GT size  0}}
                    <div class="centerBox">
                        <div class="ccc">
                            {{#each list}}
                            <div class="centerList D-takeList" style="height: auto;">
                                <div class="centerImg">
                                    <div class="two-img">
                                        &lt;%&ndash;<img src="{{photo_url || images1}}"/>&ndash;%&gt;
                                    </div>
                                    <ul class="centerUl">
                                        <li class="centerLi0">
                                            <span>{{real_name}}</span>
                                            <span>{{role_name}}</span>
                                        </li>
                                        <li class="center-new"><span>{{operation_content}}</span></li>
                                    </ul>
                                    <div class="centerDate">{{create_time}}</div>
                                </div>
                            </div>
                        </div>
                        {{/each}}
                    </div>
                    {{/IF_GT}}
                    <div class="public-botPage-right"
                         style="height: 50px;padding-top: 10px;padding-left: 100px;float: right;">
                        <div ng-include="pageUrl" onload="pageOnload()"></div>
                    </div>
                    {{#IF_EQ size 0}}
                    <div class="centerBox">
                        <div class="centerList">
                            <div class="centerImg">
                                <ul class="centerUl">
                                    <li class="centerLi1">暂无操作纪录</li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    {{/IF_EQ}}
                    <div class="page-container record-page-container" style="float: right; padding: 15px 0;"></div>
                </script>
                <!-- 底部分页 -->
            </div>
        </div>
    </div>
</div>--%>

<%--添加产品附件弹框--%>
<div class="winBox add_attach_winBox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明： 选择已有客户 -->
        <div class="winBox6 ">
            <div class="being">
                <!-- 说明：借款人信息 选择已有客户
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">添加附件</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 内容 -->
                <div class="contentBox">
                    <div class="centerBox">
                        <!-- 列表表单 -->
                        <div class="beInput">
                            <div id="selectProductAttachment_content2" style="display: inline-block"></div>
                            <script type="x-handlebars-template" id="selectProductAttachment_content2_tpl">
                                <div class="se-re">
                                    <select ng-model="data.type"
                                            class="ng-pristine ng-untouched ng-valid ng-empty node_select">
                                        <option value="" selected="selected">所属节点</option>
                                        {{#each content}}
                                        <option value="{{id}}" class="">{{node_name}}</option>
                                        {{/each}}
                                    </select>
                                    <span class="se-po se-pointput"></span>
                                </div>
                            </script>
                            <input type="text" autocomplete="off" placeholder="输入关键词" ng-model="data.keyword"
                                   class="keyword ng-pristine ng-untouched ng-valid ng-empty">
                            <button class="attachSearch" ng-click="sel('search')">
                                <i class="iconfont icon-sousuo"></i>
                            </button>

                            <button id="add_attach" style="width: 100px;color: white" ng-click="queren()">添加附件
                            </button>

                        </div>
                        <!-- 客户列表 -->
                        <div id="attach_winBox_content" style="max-height: 400px;overflow: auto;"></div>

                        <script id="attach_winBox_content_tpl" type="x-handlebars-template">
                            <div>
                                <table class="table table-hover tabBe">
                                    <thead>
                                    <tr>
                                        <td>选择</td>
                                        <td>附件名称</td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    </thead>

                                    <tbody>
                                    <!-- end ngRepeat: i in dataList.list -->
                                    {{#if list.[0]}}
                                    {{#each list}}
                                    <tr ng-repeat="i in dataList.list" class="">
                                        <td>
                                            <input type="checkbox" id="checkbox_{{id}}" name="attch_id"
                                                   value="{{id}}"
                                                   ng-checked="isSelected(i.id)"
                                                   ng-click="updateSelection($event,i.id)"
                                                   ng-model="checkbox_tags"
                                                   class="ng-pristine ng-untouched ng-valid ng-empty attach_checkbox">
                                        </td>
                                        <td class="">{{type_name}}</td>
                                        <td class=""></td>
                                        <td class=""></td>
                                        <td class=""></td>
                                    </tr>
                                    {{/each}}
                                    {{else}}
                                    <tr class="">
                                        <td colspan="16">暂时找不到数据</td>
                                    </tr>
                                    {{/if}}
                                    </tbody>

                                </table>
                            </div>
                        </script>
                    </div>

                    <!-- 底部分页 -->
                    <div class="footerBox" style="padding: 15px; display: block;">
                        <div class="footerBtn">
                            <button ng-click="queren()">确定所选</button>
                        </div>
                        <div class="footerRight">
                            <!-- ngInclude: pageBox -->
                            <div ng-include="pageBox" onload="pgBoxLoad()" id="attach-page-container"
                                 class=" page-container">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<%--新增附件弹框--%>
<div class="winBox addwinBox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box">
        <div class="winBox2 ">
            <remarksadmin><!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan  addAndEditAttach_title">新增附件</span>
                    <i class="iconfont icon-wrong headerIcon"></i>
                </div>
                <!-- 内容 -->
                <div class="deleBox">
                    <!-- 中间列表 -->

                    <div class="public-bgDate">

                        <span style="color: black;">名称：</span>


                        <span>


			<input type="text" autocomplete="off" id="inputNames" placeholder="请输入名称" ng-focus="remHight()"
                   ng-model="param.name"
                   class="ng-pristine ng-untouched ng-valid ng-empty add_attach_name">
		</span>
                        <br> <br>
                        <%--<span  style="color: black;">所属产品：</span>--%>
                        <%--<div id="selectProductAttachment_content" style="display: inline-block"></div>--%>
                        <%--<script type="x-handlebars-template" id="selectProductAttachment_content_tpl">--%>
                        <%--<div class="se-re tdSelect edit_attach_div_select">--%>
                        <%--<select ng-options="item.ID as item.name for item in selejia2" ng-model="data.addrCity" ng-change="selectjia('b')" class="ng-pristine ng-untouched ng-valid ng-empty edit_attach_select winBox_role_select">--%>
                        <%--<option value="-1" class="" selected="selected">所属产品</option>--%>

                        <%--{{#each content.list}}--%>
                        <%--<option value="{{id}}" class="">{{product_name}}</option>--%>
                        <%--{{/each}}--%>

                        <%--</select>--%>
                        <%--<span class="se-po"></span>--%>
                        <%--</div>--%>
                        <%--</script>--%>
                        <%--<div id="selectProductAttachment_content2" style="display: inline-block"></div>--%>
                        <%--<script type="x-handlebars-template" id="selectProductAttachment_content2_tpl">--%>
                        <%--<div class="se-re tdSelect edit_attach_div_select">--%>
                        <%--<select ng-options="item.ID as item.name for item in selejia2" ng-model="data.addrCity" ng-change="selectjia('b')" class="ng-pristine ng-untouched ng-valid ng-empty winBox_role2_select">--%>
                        <%--<option value="-1" class="" selected="selected">所属节点</option>--%>
                        <%--{{#each content}}--%>
                        <%--<option value="{{id}}" class="">{{node_name}}</option>--%>
                        <%--{{/each}}--%>

                        <%--</select>--%>
                        <%--<span class="se-po"></span>--%>
                        <%--</div>--%>
                        <%--</script>--%>
                    </div>

                    <div class="beizhu newAndEditLog_content"><span style="color: red;">*</span>描述:</div>
                    <textarea class="delect_reason add_attach_text"></textarea>


                    <!-- 底部 -->
                    <div class="deleFooter">
                        <div class="deleBtn">
                            <button class="add_attach_window_commit">确定提交</button>
                        </div>
                        <div class="zishu">
                            <i id="">120</i>字
                        </div>
                    </div>
                </div>

            </remarksadmin>
        </div>
    </div>
</div>


<%--是否删除弹窗--%>
<div class="winBox delete_winBox">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明：提交评审弹窗 -->
        <div class="winBox5 ">
            <div>
                <div class="headerBox">
                    <!-- ngIf: recheckLoan==2 --><span class="headerSpan " ng-if="recheckLoan==2">删除产品</span>
                    <!-- end ngIf: recheckLoan==2 -->
                    <!-- ngIf: recheckLoan==1 -->
                    <!-- ngIf: recheckLoan==3 -->
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 内容 -->
                <div class="deleBox">
                    <!-- 底部 -->
                    <div class="deleteTit">
                        <span class="first"><i class="iconfont icon-tips2"></i></span>
                        <!-- ngIf: recheckLoan==1 || recheckLoan==2 --><span
                            ng-if="recheckLoan==1 || recheckLoan==2" class="">您确定删除该产品？</span>
                        <!-- end ngIf: recheckLoan==1 || recheckLoan==2 -->
                        <!-- ngIf: recheckLoan==3 -->
                    </div>
                    <div class="deleFooter" style="padding: 0;">
                        <div class="deleBtn">
                            <button ng-click="btn()" id="sureDelete"
                                    style="margin: 0;margin-bottom: 30px;margin-left: 68px;">确认
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<link href="static/css/viewer.css" rel="stylesheet"/>
<script type="text/javascript" src="static/plugins/ueditor/ueditor.config.js?_v=190102162154"></script>
<script type="text/javascript" src="static/plugins/ueditor/ueditor.all.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/page/product/getFirst.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/page/product/product_list.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/jquery-plugin/jpager.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/jquery-plugin/viewer-fake.js?_v=190102162154"></script>

<%@ include file="../../common/web_bottom.jsp" %>
